import { useInfoStore } from '@/store'

export const hasPermission = (path: string) => {
  const userStore = useInfoStore()
  return userStore.canOperate(path)
}
